#ifndef __TOUCHSCR_H
#define __TOUCHSCR_H

#include <config.h>
#include <event.h>

/* Rectify parameters */
struct rectify_param {
    float   X1;
    float   X2;
    float   Y1;
    float   Y2;
};

#define CLICK_PERIOD        (HZ/2)  /* 0.5 sec */
#define DOUBLE_CLICK_PERIOD (HZ/2)

int mtc7000_open(void);
void mtc7000_close(void);
void mtc7000_polling(EVENT *e);
void mtc7000_rectify(COORD dot1, COORD dot2, COORD pos1, COORD pos2);
void mtc7000_draw_rectifier(void);
void mtc7000_lock(void);
void mtc7000_unlock(void);

#endif /* __TOUCHSCR_H */
